<!-- BEGIN PAGE HEADER-->
<?php $this->load->view('partials/breadcrumb.tpl') ?>
<!-- END PAGE HEADER-->
<!-- BEGIN PAGE CONTENT-->
<script type="text/javascript">
    function defConfirm(url) {
        if (!confirm("确定要删除吗？")) {
            return false;
        }
        window.location.href = url;
        return true;
    }

    $(document).ready(function () {
        $("#reset").click(function () {
            $("select").val('');
            $("input[type='text']").val('');
        });
    });
</script>
<div class="row">
    <div class="col-xs-12">
        <!-- Begin: life time stats -->
        <div class="portlet">
            <?= form_open('', Array('class' => 'form-inline', 'role' => 'form')) ?>
            <?= search_form_input('name', filterValue('name'), '付款账号所有者', 'class="form-control input-medium"'); ?>
            <?= search_form_input('account', filterValue('account'), '付款账号', 'class="form-control input-medium"'); ?>
            <button type="button" class="btn default" id="reset">重置条件</button>
            <button type="submit" class="btn green about_search">搜索 <i class="fa fa-search"></i></button>
            <?= form_close() ?>
            <div class="portlet-body">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-scrollable">
                            <table class="table table-hover table-bordered table-striped">
                                <thead>
                                <tr>
                                    <th width="5%">ID</th>
                                    <th width="10%">账号所有者</th>
                                    <th width="15%">付款账号</th>
                                    <th width="25%">账号详情</th>
                                    <th width="5%">状态</th>
                                    <th width="15%">备注</th>
                                    <th width="15%">创建时间</th>
                                    <th width="15%">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php foreach ($list as $v) { ?>
                                    <tr>
                                        <td><?= $v->id ?></td>
                                        <td><?= $v->name ?></td>
                                        <td><?= $v->account ?></td>
                                        <td><?= $v->detail_info ?></td>
                                        <td><?= $v->status==1?'<span class="btn-success">启用</span>':'<span class="btn-warning">禁用</span>' ?></td>
                                        <td><?= $v->remark ?></td>
                                        <td><?= date('Y-m-d H:i:s', $v->create_time) ?></td>
                                        <td>
                                            <a class="btn btn-primary btn-sm" href="<?=site_url($thisModule . $thisController . '/edit/' . $v->id)?>">编辑</a>
                                        </td>
                                    </tr>
                                <?php } ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-12 text-right">
                        <?= $pagination ?>
                    </div>
                </div>
            </div>
        </div>
        <!-- End: life time stats -->
    </div>
</div>
<!-- END PAGE CONTENT-->
